package com.heliang.util;

import java.util.ArrayList;
import java.util.List;

import com.heliang.dataaccess.bean.PartInfoBean;

public class Constants {

    /********************************************* 设备常量 ************************************************/

    /**
     * 手机屏宽度
     */
    public static int SCREEN_WIDTH = 480;

    /**
     * 手机屏高度
     */
    public static int SCREEN_HEIGHT = 800;

    /**
     * SD卡位置
     */
    public static String SDCARD_PATH = "";

    /**
     * mac地址
     */
    public static String MAC_ADDRESS = "";

    /**
     * tag标记
     */
    public static final String TAG = "yunlai";

    /**
     * 安全密钥
     */
    public static String SECKEY = "HYAPP9I0I6IyunlaiINTERFACE";

    /**
     * 站点ID
     */
    public static int SITE_ID = 5;

    /**
     * APP名字
     */
    public static String APP_NAME = "appXieHui2";

    /**
     * 网络状态
     */
    public static int APP_NET_TYPE = -1;

    /**
     * 无网络
     */
    public static int NO_NET = -1;

    /**
     * wife网络
     */
    public static int WIFI = 1;

    /**
     * wap网络
     */
    public static int CMWAP = 2;

    /**
     * net网络
     */
    public static int CMNET = 3;

    /**************************************** 常用的数据 *******************************************/

    /**
     * 通讯录的最新会员
     */
    public static List<Integer> NEWEST_MILLIST = new ArrayList<Integer>();

    /**************************************** 资源保存的路径 *******************************************/

    /**
     * App 路径
     */
    public static String PATH_APP = "/" + APP_NAME + "/";

    /**
     * 用户资源路径
     */
    public static String PATH_USER = "/" + APP_NAME + "/usersHead/";

    public static String PATH_INFO = "/" + APP_NAME + "/info/";

    public static String PATH_STORE = "/" + APP_NAME + "/store/";

    /**
     * 会员资源路径
     */
    public static String PATH_MEMBER = "/" + APP_NAME + "/member/";

    /**
     * 产品资源路径
     */
    public static String PATH_PRODUCT = "/" + APP_NAME + "/product/";

    /**
     * 通讯录列表资源路径
     */
    public static String PATH_MAILLIST = "/" + APP_NAME + "/maillist/";

    /**
     * 推荐产品资源路径
     */
    public static String PATH_RECOM_PRODUCT = "/" + APP_NAME + "/recom_product/";

    /**
     * 求购资源路径
     */
    public static String PATH_WANTED = "/" + APP_NAME + "/wanted/";

    /**
     * 推荐软件资源路径
     */
    public static String PATH_RECOM_SOFT = "/" + APP_NAME + "/recomsoft/";

    /**
     * 更多资源路径
     */
    public static String PATH_MORE = "/" + APP_NAME + "/more/";

    public static String PATH_TEMP = "/" + APP_NAME + "/temp/";

    /**
     * 日志资源路径
     */
    public static String PATH_LOG = "/" + APP_NAME + "/log/";

    /********************************************* 请求服务器数据接口 ************************************************/
    /**
     * 服务器地址
     */
    public static String ACCESS_SERVICE_LINK = "http://app.yunlai.cn:8080/HY_APPInterfaceServer";// 测试

    // public static String ACCESS_SERVICE_LINK = "";//正式

    /**
     * 首页推荐资讯,活跃会员,推荐资讯请求地址
     */
    public static final String INTERFACE_INDEX = "/recommend.do?param=";

    /**
     * 首页顶部和底部广告请求地址
     */
    public static final String INTERFACE_ADVERTISEMENT = "/ad/advertising.do?param=";
    
    /**
     * 根据资讯类别ID查找资讯请求地址
     */
    public static final String INTERFACE_INFO = "/news.do?param=";

    /********************************************* 请求第三方服务器数据接口 *****************************************/
    /* 新浪微博相关接口 */
    public static String SINA_WEIBO_BIND_URL = "https://api.weibo.com/oauth2/authorize";

    public static String SINA_WEIBO_APP_KEY = "";

    public static String SINA_WEIBO_APP_SECKET = "";

    public static String SINA_WEIBO_ACCESS_URL = "http://api.weibo.com/oauth2/access_token";

    public static String SINA_WEIBO_USER_INFO_URL = "https://api.weibo.com/2/users/show.json";

    public static String SINA_WEIBO_PUBLISH = "https://api.weibo.com/2/statuses/update.json";

    public static String SINA_WEIBO_PUBLISH_PIC = "https://api.weibo.com/2/statuses/upload.json";

    /* 腾讯微博相关接口 */
    public static final String OAUTH_VERSION_2_A = "2.a";

    public static String TENCENT_WEIBO_AUTHORIZE_URL = "https://open.t.qq.com/cgi-bin/oauth2/authorize";

    public static String TENCENT_WEIBO_ACCESS_TOKEN_URL = "https://open.t.qq.com/cgi-bin/oauth2/access_token";

    public static String TENCENT_WEIBO_USER_INFO_URL = "https://open.t.qq.com/api/user/info";

    public static String TENCENT_WEIBO_PUBLISH = "https://open.t.qq.com/api/t/add";

    public static String TENCENT_WEIBO_PUBLISH_PIC = "https://open.t.qq.com/api/t/add_pic";

    public static String TENCENT_WEIBO_APP_KEY = "";

    public static String TENCENT_WEIBO_APP_SECKET = "";

    /**
     * 分享网络上的图片接口
     */
    public static String TENCENT_WEIBO_PUBLISH_PIC_URL = "https://open.t.qq.com/api/t/add_pic_url";

    /********************************************* 请求activity的code ************************************************/
    public static int HOT_INFO = 113;

    /*********************************************** 数据库表版本号对应的 **********************************************/
    /**
     * 资讯分类版本ID
     */
    public static final int VER_INFO_CAT = 1;

    /**
     * 资讯版本ID
     */
    public static final int VER_INFO = 2;

    /**
     * 首页推荐资讯版本ID
     */
    public static final int VER_RECOMMEND_INFO = 3;

    /**
     * 顶部广告版本ID
     */
    public static final int VER_ADVERTISEMENT = 4;

    /**
     * 会员版本ID
     */
    public static final int VER_MEMBER = 5;

    /**
     * 产品分类版本ID
     */
    public static final int VER_PRODUCT_CAT = 6;

    /**
     * 产品供应版本ID
     */
    public static final int VER_PRODUCT = 7;

    /**
     * 求购分类版本ID
     */
    public static final int VER_TRADE_CAT = 8;

    /**
     * 求购版本ID
     */
    public static final int VER_TRADE = 9;

    /**
     * 求购分类版本ID
     */
    public static final int VER_WANTED_CAT = 10;

    /**
     * 求购信息版本ID
     */
    public static final int VER_WANTED = 11;

    /**
     * 企业黄页分类版本ID
     */
    public static final int VER_STORE_CAT = 12;

    /**
     * 企业黄页版本ID
     */
    public static final int VER_STORE = 13;

    /**
     * 首页推荐商铺版本ID
     */
    public static final int VER_RECOMMEND_STORE = 14;

    /**
     * 更多版本ID
     */
    public static final int VER_MORE = 15;

    /**
     * 关于我们版本ID
     */
    public static final int VER_BODY = 16;

    /**
     * 消息推送版本ID
     */
    public static final int VER_PUSH = 17;

    /**
     * 供应收藏版本ID
     */
    public static final int VER_TRADE_FAVO = 18;

    /**
     * 求购收藏版本ID
     */
    public static final int VER_WANTED_FAVO = 19;

    /**
     * 商铺收藏版本ID
     */
    public static final int VER_STORE_FAVO = 20;

    /**
     * 资讯收藏版本ID
     */
    public static final int VER_INFO_FAVO = 21;

    /**
     * 版本号表记录数
     */
    public static final int VER_COUNT = 5;

    // 底部栏目
    public static List<PartInfoBean> PARINFOS = new ArrayList<PartInfoBean>();

}
